package com.hefei.blog.core.lucene;

import org.apache.log4j.Logger;

import com.hefei.blog.base.utils.PropertiesLoader;

public class LuceneConstants {

	private static Logger logger = Logger.getLogger(LuceneConstants.class);
	private static final String LUCENE_CONFIG = "/lucene.properties";
	public static String INDEX_ROOT = "";
	
	public static String ARTICLE_INDEX = "";
	
	static {
		try {
			PropertiesLoader p = new PropertiesLoader(LUCENE_CONFIG);

			INDEX_ROOT = p.getProperty("INDEX_ROOT");
			ARTICLE_INDEX = p.getProperty("ARTICLE_INDEX");
			
		} catch (Exception e) {
			logger.error("加载配置文件 出错", e);
			System.exit(0);
		}
	}
	
}
